﻿@model PagedList<Entity.Admin.Role>
@section viewAction{
    @Html.Partial("_Button_Create")
    @Html.Partial("_Button_Search")
}
<table class="default db">
    <thead>
        <tr>
            <th>
                角色名
            </th>
            <th>
                备注
            </th>
            <th>
                用户数
            </th>
            <th>
                编辑
            </th>
        </tr>
    </thead>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.RoleName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.RoleMemo)
            </td>
            <td>
                @Html.Label(item.Users.Count().ToString())
            </td>
            <td>
                @Html.Partial("_Ajax_Link_Edit", item) |
                @Html.Partial("_Ajax_Link_Delete", item)
            </td>
        </tr>
    }
    <tfoot>
        <tr>
            <td colspan="4">@Ajax.MikePager(Model)
            </td>
        </tr>
    </tfoot>
</table>
